home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta NAME="Author,Design" Content="GateKeeper Team; gatekeeper@infopulse.net">
- <meta NAME="Copyright" Content="Infopulse; www.infopulse.net">
- <title>Empty</title>
- </head>
-
- <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080">
- <%
- action = Request.ReqParam("action")
- order = Request.ReqParam("ProxyNo")
- Set proxy = Proxies.item( order )
-
- if action = "Commit" Then
- ' Process the new settings
-
- strProps = proxy.GetPropertyNames
- tmpProps = strProps
- While Len(tmpProps)
-
- pos = InStr(tmpProps,",")
- If pos > 0 Then
- propName = Left(tmpProps,pos - 1)
- tmpProps = Mid(tmpProps,pos + 1)
- Else
- propName = tmpProps
- tmpProps = ""
- End If
-
- propType = proxy.GetPropertyType(propName)
- if propType = "BOOL" Then
- propVal = Request.ReqParam(propName)
- if propVal <> "" then
- proxy.SetBoolProperty propName,True
- else
- proxy.SetBoolProperty propName,False
- end if
- End if
- if propType = "NUMBER" Then
- propVal = Request.ReqParam(propName)
- If Len(propVal) = 0 Then
- propVal = 0
- End If
- proxy.SetNumberProperty propName,propVal
- End If
- if propType = "STRING" Then
- propVal = Request.ReqParam(propName)
- proxy.SetStringProperty propName,propVal
- End If
- if propType = "PASSWORD" Then
- propVal = Request.ReqParam(propName)
- proxy.SetStringProperty propName,propVal
- End If
-
- Wend
-
- On Error Resume Next
- proxy.Commit
-
- If Not Err.Number = 0 Then
- ErrLine = Err.Description
- else
- Response.Redirect("curentproxies.agp")
- End If
- Else
- if( action = "Delete" ) then
- proxy.Remove
- Response.Redirect("curentproxies.agp")
- End if
- End If
- %>
- <p><big><strong><font face="Arial">Edit proxy</font></strong></big></p>
- <%
- If Not Len(ErrLine) = 0 Then
- Response.Write("<B><FONT COLOR=""#FF0000"">" & ErrLine & "</FONT></B><br>")
- End If
- %>
- <form method="POST" action= "/proxies/editproxy.agp">
- <input type="hidden" name="ProxyNo" value="<%Response.Write( order )%>" >
- <div align="center"><center>
- <table border="1" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td width="50%" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Option
- </font></strong></td>
- <td width="50%" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Value
- </font></strong></td>
- </tr>
- <%
- On Error Resume Next
- strProps = proxy.GetPropertyNames
- tmpProps = strProps
- While Len(tmpProps)
- pos = InStr(tmpProps,",")
- If pos > 0 Then
- propName = Left(tmpProps,pos - 1)
- tmpProps = Mid(tmpProps,pos + 1)
- Else
- propName = tmpProps
- tmpProps = ""
- End If
- %>
- <tr>
- <td><strong><font face="Arial">
- <%Response.Write(propName)%>
- </font></strong></td>
- <td>
- <%
- propType = proxy.GetPropertyType(propName)
- if propType = "BOOL" Then
- if proxy.GetBoolProperty(propName) Then
- %>
- <input type="checkbox" name="<%Response.Write(propName)%>" checked >
- <%
- Else
- %>
- <input type="checkbox" name="<%Response.Write(propName)%>">
- <%
- End if
- End if
- if propType = "NUMBER" Then
- propVal = proxy.GetNumberProperty(propName)
- %>
- <input type="text" size="5" maxlength="5" name="<%Response.Write(propName)%>" value="<%Response.Write(propVal)%>">
- <%
- End If
- if propType = "STRING" Then
- propVal = proxy.GetStringProperty(propName)
- %>
- <input type="text" size="30" name="<%Response.Write(propName)%>" value="<%Response.Write(propVal)%>">
- <%
- End If
- if propType = "PASSWORD" Then
- propVal = proxy.GetStringProperty(propName)
- %>
- <input type="password" size="30" name="<%Response.Write(propName)%>" value="<%Response.Write(propVal)%>">
- <%
- End If
- %>
-
- </td>
- </tr>
- <%
- Wend
- %>
- </td>
- </table>
- </center></div>
- <p><input type="submit" name="action" value="Commit"></p>
- </form>
-
- <font size="1" face="Arial"><%Response.Write(GateKeeper.Version)%></font>
-
- </body>
- </html>
-